//
//  Auction_SpecialSaleBusinessInfo_Tbv_WX.m
//  ZITHER
//
//  Created by weixin on 2019/6/4.
//  Copyright © 2019 weixn. All rights reserved.
//

#import "Auction_SpecialSaleBusinessInfo_Tbv_WX.h"
#import "Auction_SpecialSaleBusinessInfoComment_Cell_WX.h"
#import "Auction_SpecialSaleBusinessInfoGrade_Cell_WX.h"
#import "Auction_SpecialSaleBusinessInfo_Cell_WX.h"



@implementation Auction_SpecialSaleBusinessInfo_Tbv_WX


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self def];
        [self setUI];
    }
    return self;
}

-(void)def{
    
    self.delegate = self;
    self.dataSource = self;
    
}

-(void)setUI{
    
}


#pragma mark - UITableViewDelegate

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
    NSLog(@"indexPath == %@",indexPath);
    NSLog(@"");
    
}

#pragma mark - UITableViewDataSource
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 10;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    if (indexPath.row ==0) {
        return [self getAuction_SpecialSaleBusinessInfo_Cell_WX:indexPath];
    }else if (indexPath.row == 1){
        return [self getAuction_SpecialSaleBusinessInfoGrade_Cell_WX:indexPath];
    }else if (indexPath.row == 2){
        return [self getAuction_SpecialSaleBusinessInfoComment_Cell_WX:indexPath];
    }else if (indexPath.row == 3){
        return [self getAuction_SpecialSaleBusinessInfoComment_Cell_WX:indexPath];
    }else if (indexPath.row == 4){
        return [self getAuction_SpecialSaleBusinessInfoComment_Cell_WX:indexPath];
    }else{
        return [self getAuction_SpecialSaleBusinessInfoComment_Cell_WX:indexPath];
    }
    
}

/**
 Auction_SpecialSaleBusinessInfoComment_Cell_WX
 Auction_SpecialSaleBusinessInfoGrade_Cell_WX
 Auction_SpecialSaleBusinessInfo_Cell_WX
 */
-(UITableViewCell *)getAuction_SpecialSaleBusinessInfoComment_Cell_WX:(NSIndexPath *)indexPath{
    static NSString *sectionCell = @"Auction_SpecialSaleBusinessInfoComment_Cell_WX";
    Auction_SpecialSaleBusinessInfoComment_Cell_WX *cell = [self dequeueReusableCellWithIdentifier:sectionCell];
    if (cell == nil) {
        cell = [[Auction_SpecialSaleBusinessInfoComment_Cell_WX alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:sectionCell];
    }
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    
    return cell;
}
-(UITableViewCell *)getAuction_SpecialSaleBusinessInfoGrade_Cell_WX:(NSIndexPath *)indexPath{
    static NSString *sectionCell = @"Auction_SpecialSaleBusinessInfoGrade_Cell_WX";
    Auction_SpecialSaleBusinessInfoGrade_Cell_WX *cell = [self dequeueReusableCellWithIdentifier:sectionCell];
    if (cell == nil) {
        cell = [[Auction_SpecialSaleBusinessInfoGrade_Cell_WX alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:sectionCell];
    }
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    
    return cell;
}
-(UITableViewCell *)getAuction_SpecialSaleBusinessInfo_Cell_WX:(NSIndexPath *)indexPath{
    static NSString *sectionCell = @"Auction_SpecialSaleBusinessInfo_Cell_WX";
    Auction_SpecialSaleBusinessInfo_Cell_WX *cell = [self dequeueReusableCellWithIdentifier:sectionCell];
    if (cell == nil) {
        cell = [[Auction_SpecialSaleBusinessInfo_Cell_WX alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:sectionCell];
    }
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    
    return cell;
}



@end
